'use strict'

const path = require('path')

module.exports = {
  dev: { //运行环境
    env: require('./dev.env'),
    assetsSubDirectory: 'static',
    assetsPublicPath:'/',
    proxyTable: {},
    host:'localhost',
    port: 3000,
    autoOpenBrowser: true,
    errorOverlay: true,
    notifyOnErrors: true,
    poll: false,
    proxyTable: {},

    devtools:'cheap-module-eval-source-map',
    cacheBusting: true,
    cssSourceMap: true
  },
  build:{//打包环境
    env:require('./prod.env'),
    index: path.resolve(_dirname,'./dist/index.html'),
    assetsRoot: path.resolve(_dirname,'./dist'),
    assetsSubDirectory: 'static',
    assetsPublicPath: './',
    productionSourceMap: false,
    devtools: '#source-map',
    productionGzip: false,
    productionGzipExtensions: ['js','css'],
    // bundleAnalyzerReport: process.env.npm_config_report

  }
}
